package view;



//import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import javax.swing.JMenuItem;



/**
 * Main menu for the application
 * 
 * @author MUSAB
 * @since May, 2013
 * @version $Revision: 1.0 $
 */
public class MainMenuView extends JMenuBar {
	/**
	 * Constructor 
	 * 
		 */
	JMenu fileMenu, helpMenu,toolsMenu;
	
	/**
	 * Menu items
	 */
	JMenuItem exitMenuItem, aboutMenuItem, templatesMenuItem,tokensMenuItem,meetingsMenuItem, filtersMenuItem;
	public MainMenuView(){
		
		// File menu
		fileMenu = new JMenu("File");
		exitMenuItem = new JMenuItem("Exit");
		fileMenu.add(exitMenuItem);
		
		// Adding all menus to the instance
		this.add(fileMenu);
		
		helpMenu = new JMenu("Help");
		aboutMenuItem = new JMenuItem("About");
		helpMenu.add(aboutMenuItem);
		
		// Tools menu
		toolsMenu = new JMenu("Tools");
		templatesMenuItem = new JMenuItem("Templates");
		tokensMenuItem = new JMenuItem("Tokens");
		meetingsMenuItem = new JMenuItem("Meetings");
		filtersMenuItem = new JMenuItem("Filters");
		
		toolsMenu.add(templatesMenuItem);
		toolsMenu.add(tokensMenuItem);
		toolsMenu.add(meetingsMenuItem);
		toolsMenu.add(filtersMenuItem);
		this.add(toolsMenu);
		
		this.add(helpMenu);
		
	}
	/**
	 * Method getFileMenu.
	 * @return JMenu
	 */
	public JMenu getFileMenu() {
		return fileMenu;
	}
	/**
	 * Method getHelpMenu.
	 * @return JMenu
	 */
	public JMenu getHelpMenu() {
		return helpMenu;
	}
	/**
	 * Method getToolsMenu.
	 * @return JMenu
	 */
	public JMenu getToolsMenu() {
		return toolsMenu;
	}
	/**
	 * Method getExitMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getExitMenuItem() {
		return exitMenuItem;
	}
	/**
	 * Method getAboutMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getAboutMenuItem() {
		return aboutMenuItem;
	}
	/**
	 * Method getTemplatesMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getTemplatesMenuItem() {
		return templatesMenuItem;
	}
	/**
	 * Method getTokensMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getTokensMenuItem() {
		return tokensMenuItem;
	}
	/**
	 * Method getMeetingsMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getMeetingsMenuItem() {
		return meetingsMenuItem;
	}
	/**
	 * Method getFiltersMenuItem.
	 * @return JMenuItem
	 */
	public JMenuItem getFiltersMenuItem() {
		return filtersMenuItem;
	}
}
